inherited dtmcj_Team: Tdtmcj_Team
  OldCreateOrder = True
  Left = 373
  Top = 241
  Height = 298
  Width = 597
  inherited adsMaster: TADODataSet
    CursorType = ctStatic
    CommandText = 'select * from cj_Team'
    object adsMasterID: TStringField
      DisplayLabel = #32534#21495
      FieldName = 'ID'
    end
    object adsMasterName: TStringField
      DisplayLabel = #21517#31216
      FieldName = 'Name'
    end
    object adsMasterParentID: TStringField
      DisplayLabel = #29238#31867'ID'
      FieldName = 'ParentID'
    end
    object adsMasterKindID: TStringField
      DisplayLabel = #20998#31867'ID'
      FieldName = 'KindID'
      Size = 10
    end
    object adsMasterEmpID: TStringField
      DisplayLabel = #24037#21495
      FieldName = 'EmpID'
    end
    object adsMasterPostionID: TStringField
      DisplayLabel = #32844#21153
      FieldName = 'PostionID'
    end
    object adsMasterismakeup: TBooleanField
      DisplayLabel = #26159#21542#25490#29677
      FieldName = 'ismakeup'
    end
    object adsMasterdutyDeptID: TBooleanField
      DisplayLabel = #36131#20219#37096#38376
      FieldName = 'dutyDeptID'
    end
    object adsMasterEmpTeamID: TStringField
      DisplayLabel = #21592#24037#29677#21035
      FieldName = 'EmpTeamID'
    end
    object adsMasterWriter: TStringField
      FieldName = 'Writer'
    end
    object adsMasterWriteTime: TDateTimeField
      FieldName = 'WriteTime'
    end
    object adsMasterModifier: TStringField
      FieldName = 'Modifier'
    end
    object adsMasterModifyTime: TDateTimeField
      FieldName = 'ModifyTime'
    end
    object adsMasterRemark: TStringField
      DisplayLabel = #22791#27880
      FieldName = 'Remark'
      Size = 50
    end
    object adsMasterRes_EmpName: TStringField
      DisplayLabel = #22995#21517
      FieldKind = fkLookup
      FieldName = 'Res_EmpName'
      LookupDataSet = Res_v_da_employee
      LookupKeyFields = 'EmpID'
      LookupResultField = 'EMpName'
      KeyFields = 'EmpID'
      Lookup = True
    end
  end
  object adsDetail: TADODataSet
    Connection = dtmConnect.conMain
    CursorType = ctStatic
    LockType = ltBatchOptimistic
    AfterOpen = adsDetailAfterOpen
    BeforePost = adsDetailBeforePost
    OnNewRecord = adsDetailNewRecord
    CommandText = 'select * from cj_TeamSet'
    Parameters = <>
    Left = 160
    Top = 32
    object adsDetailID: TStringField
      FieldName = 'ID'
    end
    object adsDetailTeamID: TStringField
      DisplayLabel = #29677#27425'ID'
      FieldName = 'TeamID'
    end
    object adsDetailEmpID: TStringField
      DisplayLabel = #24037#21495
      FieldName = 'EmpID'
    end
    object adsDetailBeginDate: TDateTimeField
      DisplayLabel = #24320#22987#26085#26399
      FieldName = 'BeginDate'
    end
    object adsDetailEndDate: TDateTimeField
      DisplayLabel = #32467#26463#26085#26399
      FieldName = 'EndDate'
    end
    object adsDetailPositionID: TStringField
      DisplayLabel = #32844#20301'ID'
      FieldName = 'PositionID'
    end
    object adsDetailWorkTypeID: TStringField
      DisplayLabel = #24037#31181'ID'
      FieldName = 'WorkTypeID'
    end
    object adsDetailRate: TBCDField
      DisplayLabel = #20135#37327#31995#25968
      FieldName = 'Rate'
      Precision = 5
      Size = 2
    end
    object adsDetailEmpGrade: TStringField
      DisplayLabel = #25805#20316#24037#31561#32423
      FieldName = 'EmpGrade'
      OnChange = adsDetailEmpGradeChange
    end
    object adsDetailEmpCoef: TBCDField
      DisplayLabel = #25805#20316#31561#32423#31995#25968
      FieldName = 'EmpCoef'
      Precision = 5
      Size = 2
    end
    object adsDetailHasStop: TBooleanField
      DisplayLabel = #26159#21542#20572#29992
      FieldName = 'HasStop'
    end
    object adsDetailLatheNo: TStringField
      DisplayLabel = #25377#36710#21495
      FieldName = 'LatheNo'
    end
    object adsDetailWriter: TStringField
      DisplayLabel = #24405#20837#20154
      FieldName = 'Writer'
    end
    object adsDetailWriteTime: TDateTimeField
      DisplayLabel = #24405#20837#26102#38388
      FieldName = 'WriteTime'
    end
    object adsDetailModifier: TStringField
      DisplayLabel = #20462#25913#20154
      FieldName = 'Modifier'
    end
    object adsDetailModifyTime: TDateTimeField
      DisplayLabel = #20462#25913#26102#38388
      FieldName = 'ModifyTime'
    end
    object adsDetailRemark: TStringField
      DisplayLabel = #22791#27880
      FieldName = 'Remark'
      Size = 50
    end
    object adsDetailRes_EmpName: TStringField
      DisplayLabel = #22995#21517
      FieldKind = fkLookup
      FieldName = 'Res_EmpName'
      LookupDataSet = Res_v_da_employee
      LookupKeyFields = 'EmpID'
      LookupResultField = 'EMpName'
      KeyFields = 'EmpID'
      Lookup = True
    end
    object adsDetailres_PositionName: TStringField
      DisplayLabel = #32844#20301
      FieldKind = fkLookup
      FieldName = 'res_PositionName'
      LookupDataSet = res_Position
      LookupKeyFields = 'id'
      LookupResultField = 'name'
      KeyFields = 'PositionID'
      Lookup = True
    end
    object adsDetailres_WorkTypeName: TStringField
      DisplayLabel = #24037#31181
      FieldKind = fkLookup
      FieldName = 'res_WorkTypeName'
      LookupDataSet = res_WorkType
      LookupKeyFields = 'id'
      LookupResultField = 'name'
      KeyFields = 'WorkTypeID'
      Lookup = True
    end
    object adsDetailres_EmpGradeName: TStringField
      DisplayLabel = #25805#20316#24037#31561#32423
      FieldKind = fkLookup
      FieldName = 'res_EmpGradeName'
      LookupDataSet = res_EmpGrade
      LookupKeyFields = 'ID'
      LookupResultField = 'Name'
      KeyFields = 'EmpGrade'
      Lookup = True
    end
    object adsDetailres_TeamName: TStringField
      DisplayLabel = #29677#32452
      FieldKind = fkLookup
      FieldName = 'res_TeamName'
      LookupDataSet = res_Team
      LookupKeyFields = 'ID'
      LookupResultField = 'Name'
      KeyFields = 'TeamID'
      Size = 50
      Lookup = True
    end
  end
  object Res_v_da_employee: TADODataSet
    Connection = dtmConnect.conMain
    CursorType = ctStatic
    CommandText = 'select EmpID,EmpName,sex from v_da_employee'
    Parameters = <>
    Left = 160
    Top = 96
  end
  object res_WorkType: TADODataSet
    Connection = dtmConnect.conMain
    CursorType = ctStatic
    LockType = ltBatchOptimistic
    CommandText = 'select * from V_da_WorkType'
    Parameters = <>
    Left = 264
    Top = 32
  end
  object res_Position: TADODataSet
    Connection = dtmConnect.conMain
    CursorType = ctStatic
    LockType = ltBatchOptimistic
    CommandText = 'select * from V_da_Position'
    Parameters = <>
    Left = 264
    Top = 96
  end
  object res_EmpGrade: TADODataSet
    Connection = dtmConnect.conMain
    CursorType = ctStatic
    LockType = ltBatchOptimistic
    CommandText = 'select * from V_cj_EmpGrade'
    Parameters = <>
    Left = 264
    Top = 160
  end
  object res_Team: TADODataSet
    Connection = dtmConnect.conMain
    CursorType = ctStatic
    LockType = ltBatchOptimistic
    CommandText = 'select ID, Name from cj_Team'
    Parameters = <>
    Left = 160
    Top = 160
  end
  object aspUpdateProcessTeam: TADOStoredProc
    Connection = dtmConnect.conMain
    LockType = ltBatchOptimistic
    ProcedureName = 'cj_sc_UpdateProcessTeam;1'
    Parameters = <
      item
        Name = '@RETURN_VALUE'
        DataType = ftInteger
        Direction = pdReturnValue
        Precision = 10
        Value = Null
      end
      item
        Name = '@BeginTime'
        Attributes = [paNullable]
        DataType = ftDateTime
        Value = Null
      end
      item
        Name = '@EndTime'
        Attributes = [paNullable]
        DataType = ftDateTime
        Value = Null
      end
      item
        Name = '@ProcessID'
        Attributes = [paNullable]
        DataType = ftString
        Size = 20
        Value = Null
      end
      item
        Name = '@EmpID'
        Attributes = [paNullable]
        DataType = ftString
        Size = 20
        Value = Null
      end
      item
        Name = '@TeamID'
        Attributes = [paNullable]
        DataType = ftString
        Size = 20
        Value = Null
      end
      item
        Name = '@SysInfoUserCode'
        Attributes = [paNullable]
        DataType = ftString
        Size = 20
        Value = Null
      end
      item
        Name = '@SysInfoCompany'
        Attributes = [paNullable]
        DataType = ftString
        Size = 20
        Value = Null
      end
      item
        Name = '@ProcFlag'
        Attributes = [paNullable]
        DataType = ftInteger
        Precision = 10
        Value = Null
      end
      item
        Name = '@Msg'
        Attributes = [paNullable]
        DataType = ftString
        Direction = pdInputOutput
        Size = 500
        Value = Null
      end>
    Left = 408
    Top = 32
  end
end
